class User(object):
    def __init__(self):
        self.name = 'jk'
        self.age = 18
    def login(self,item):
        print(item)
        return 123
    def __getattr__(self, item):
        print("hahahaha")
        return 666

user = User()
print(user.name)
print(user.xxx)
# print(getattr(user,'name'))